package com.uplift.mobile.realty.dao;

import com.uplift.mobile.realty.model.RealtyEarnings;
import com.uplift.mobile.realty.model.RealtyErModel;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface RealtyEarningsMapper {
	List<Map<String, Object>> selectRealtyEarnings(RealtyEarnings realtyEarnings);

	/**
	 * 新增收益信息
	 * @param realtyEarnings
	 * @return
	 */
	int insertRealtyEarnings(RealtyEarnings realtyEarnings);

	/**
	 * 更新收益信息
	 * @param realtyEarnings
	 * @return
	 */
	int updateRealtyEarnings(RealtyEarnings realtyEarnings);

	List<Map<String, Object>> countEveMonthEarnings(RealtyEarnings realtyEarnings);

	Map<String, Object> countYearEarnings(RealtyEarnings realtyEarnings);
	Map<String, Object> countYearEarningsForZnl(RealtyEarnings realtyEarnings);

	/**
	 * 查询房间收益列表
	 * @param realtyErModel
	 * @return
	 */
	List<Map<String, Object>> selectRoomsEarnings(RealtyErModel realtyErModel);

	Map<String, Object> countTotalMoney(RealtyEarnings realtyEarnings);

	List<Map<String, Object>> countMonthEarnings(RealtyEarnings realtyEarnings);
}
